<template>
<h1>隐藏显示指令</h1>
<p v-if="true">张三</p>
<p v-else>李四</p>
<p v-if="false">王五</p>
  <p v-if="msg">赵六</p>
</template>
<script setup>
import {ref} from "vue";

const msg = ref(true)

</script>


<style scoped>

</style>